ObjectDB Database Search
51-100 of 200 resultsError reading UTF string
. ee .component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor. java :50 ... (InterceptorContext. java :288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final] at org.jboss.as. ee .component.TCCLInterceptor.processInvocation(TCCLInterceptor. java :45) [jboss-as- ee -7.1.1.Final.jar:7.1.1.Final] at org
|
|
javax.transaction.Synchronization with Java SE 10.0.1
the Synchronization interface. Are you using -add-modules java .se. ee ? If yes, try removing it. See this thread on Stackoverflow. support Support I was not using -add-modules java .se. ee , but -add-modules java .corba ... Greetings, I am trying to get my app running on Java 10 (up to now it runs on Java 8
|
|
NoSuchFieldError: __odbTracker on NetBeans 7.3 + JBoss 7.1.1
.Method.invoke(Method. java :601) org.jboss.as. ee .component.ManagedReferenceMethodInterceptorFactory ... .Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor. java :135) org.jboss.as. ee .component ... .processInvocation(WeavedInterceptor. java :53) org.jboss.as. ee .component.interceptors
|
|
Glassfish 4 AbstractMethodError: com.objectdb.jpa.EMF.createEntityManager
Hi! I've been trying to get Glassfish 4 ( Java EE 7) work with ObjectDB the whole day. It seems to be an error. The same code (adapted to Java EE 6) works perfect in Glassfish 3.1.2.2. I attached ... , method: public void com.mirq.controller.UserC.findUser( java .lang.Long) WARNING: javax.ejb
|
|
Cannot cast com.objectdb.jpa.Provider to PersistenceProvider
Hi! I'm trying to get ObjectDB 2.5.1_1 work with stable Glassfish 4 in a Java EE 7 NetBeans ... .jpa.JPADeployer prepare method SEVERE: java .lang.ClassCastException: Cannot cast com.objectdb.jpa.Provider to javax.persistence.spi.PersistenceProvider at java .lang.Class.cast(Class. java
|
|
JPA Metamodel Attributes
: COLLECTION , SET , LIST , or MAP . Represents an attribute typed as a generic java .util.Collection . Represents an attribute typed as a java .util.Set , implying unique elements without a specific order. Represents an attribute typed as a java .util.List , supporting ordered collections and index-based
|
|
JPA Entity Fields
. This behavior is similar to transient fields in Java , which don't participate in serialization. Static ... either the Java transient modifier (which also affects serialization) or the JPA @Transient ... declared type, including a generic java .lang.Object , as long as the actual runtime value
|
|
Date and Time in JPQL and Criteria Queries
when the query is executed: CURRENT_DATE : Returns the current date as a java .sql.Date instance. CURRENT_TIME : Returns the current time as a java .sql.Time instance. CURRENT_TIMESTAMP : Returns the current timestamp (date and time) as a java .sql.Timestamp instance. Extracting date parts JPA does not define
|
|
JPA Query Structure (JPQL / Criteria)
operates on Java classes and objects. For example, a JPQL query can retrieve entities, unlike SQL ... and easier to use in Java applications. JPQL Query Structure Like SQL, a JPQL SELECT query consists ... ). The exceptions, where JPQL is case-sensitive, include Java source elements such as the names of entity classes
|
|
Database Doctor
(for example, a bug in the operating system, Java , or ObjectDB). Copying a database file ... Doctor tool is included in the objectdb.jar file. You can run the tool from the command line: $ java -cp ... , specify two command-line arguments: $ java -cp objectdb.jar com.objectdb.Doctor old.odb new.odb
|
|
ObjectDB 2.9 Developer's Guide
Welcome to ObjectDB for Java /JPA Developer's Guide. Here you can learn how to develop database applications using ObjectDB and JPA ( Java Persistence API). The main purpose of this guide is to make ... this guide, but a strong background and understanding of the Java language is essential
|
|
Is ObjectDB a NoSQL Database?
, using two standard Java query languages: JPQL ( Java Persistence Query Language) and JDOQL (JDO ... , but they are easier to use in object oriented languages such as Java . In addition, unlike most other NoSQL databases
|
|
Database Transaction Replayer
is bundled in the objectdb.jar file. You can run it from the command line: $ java -cp objectdb.jar com ... . You can also run the Replayer up to a specified transaction. For example: $ java -cp objectdb.jar com
|
|
FROM clause (JPQL / Criteria API)
The FROM clause declares query identification variables for iterating over objects in the database. A query identification variable is similar to a variable in a Java enhanced for loop ... Country c Reserved identifiers The name of a JPQL query variable must be a valid Java identifier
|
|
Is ObjectDB better than competing object databases?
support for the Java Persistence API (JPA). It also supports a more recent and advanced version of the Java Data Objects (JDO) API than competing object databases. By using a standard API such as JPA
|
|
Query Parameters in JPA
as a pure date (no time): query. setParameter ("date", new java .util.Date(), TemporalType . DATE ); Because TemporalType . DATE represents only the date, the time part of the java .util.Date instance
|
|
Can I use ObjectDB to access a relational database?
To access relational databases using the Java Persistence API (JPA) you will need an Object Relational Mapping (ORM) tool, such as Hibernate, TopLink, EclipseLink, Open JPA or DataNucleus. The DataNucleus ORM implementation supports also the Java Data Objects (JDO) API. ObjectDB is a full featured
|
|
jakarta.persistence.metamodel.EntityType
of the managed type. Since: Jakarta Persistence (JPA) 1.0 Class getBindableJavaType () Return the Java type of the represented object. If the bindable type of the object is PLURAL_ATTRIBUTE , the Java element type is returned. If the bindable type is SINGULAR_ATTRIBUTE or ENTITY_TYPE , the Java type
|
|
jakarta.persistence.metamodel.IdentifiableType
of the managed type that corresponds to the specified name and Java element type. Inherited from ... and Java element type. Inherited from ManagedType Parameters: name - the name of the represented ... the managed type that corresponds to the specified name and Java element type. Inherited from ManagedType
|
|
jakarta.persistence.metamodel.ManagedType
of the managed type that corresponds to the specified name and Java element type. Parameters: name ... and Java element type. Parameters: name - the name of the represented attribute elementType - the element ... type that corresponds to the specified name and Java element type. Parameters: name - the name
|
|
jakarta.persistence.metamodel.EmbeddableType
to the specified name and Java element type. Inherited from ManagedType Parameters: name - the name ... the managed type that corresponds to the specified name and Java element type. Inherited from ... the managed type that corresponds to the specified name and Java element type. Inherited from
|
|
jakarta.persistence.metamodel.MappedSuperclassType
attribute of the managed type that corresponds to the specified name and Java element type. Inherited from ... name and Java element type. Inherited from ManagedType Parameters: name - the name ... -valued attribute declared by the managed type that corresponds to the specified name and Java element
|
|
Database Management Settings
. Activation codes are generated by running the Activator utility from the command line: $ java -cp objectdb
|
|
SELECT clause (JPQL / Criteria API)
performance and can sometimes reduce the amount of Java code needed. Note that query results
|
|
Storing JPA Entities
. getTransaction (). commit (); The Employee instance is constructed as an ordinary Java object
|
|
JPA Metamodel Types
Java type known to the persistence provider. Represents basic foundation types (primitives, wrappers
|
|
JPA Queries
The Criteria API provides a factory for defining queries programmatically using Java objects
|
|
JPA Named Queries
A named query is a statically defined query with a predefined, unchangeable query string. Using named queries instead of dynamic queries can improve code organization by separating JPQL query strings from Java code. This practice also enforces the use of query parameters instead of embedding
|
|
DELETE Queries in JPA/JPQL
+ an optional variable ObjectDB supports using the java .lang.Object class in queries as an extension
|
|
SQL Queries Annotations
Jakarta Persistence (JPA) provides a set of annotations to define and map native SQL queries when the standard Java Persistence Query Language (JPQL) is insufficient. While ObjectDB focuses on JPQL and ignores these annotations, they remain essential for applications interacting with relational
|
|
Step 2: Define a JPA Entity Class
the [New Java Class] dialog box, e.g. by right clicking the project node (in the [Package Explorer] window ... and paste to replace the new source file content with the following code: package guest; import java .io.Serializable; import java .sql.Date; import javax.persistence.Entity; import javax.persistence
|
|
Step 4: Add a Servlet Class
New Other... Web Servlet and clicking Next . The Java package name should be guest ... : package guest; import java .io.IOException; import java .util.List; import javax.servlet.ServletException
|
|
NetBeans/JPA Web Application Tutorial
This is the NetBeans version of the JPA Web App tutorial. It demonstrates how to create and run a database driven Java web application in NetBeans - using Tomcat 6 Apache Tomcat ... the following software: Java JDK (6.0 or above). NetBeans - Java or All bundle The last version of ObjectDB
|
|
Step 3: Define a Spring DAO Component
) that we will define in this step as a Spring MVC component: Open the [New Java Class] dialog box by right ... Java Class... . Enter GuestDao as the class name - use exactly that case sensitive class ... replace the content of the new source file with the following code: package guest; import java .util.List
|
|
NetBeans/JPA Spring MVC Web Tutorial
This is the NetBeans version of the Spring MVC and JPA tutorial. It demonstrates how to create and run a full Java Spring MVC (Model View Controller) web application in ... software: Java JDK 6.0 (or above). NetBeans ( Java or All bundle). The tutorial was written
|
|
JPA Web App Tutorial - Maven Project
The JPA Web Application tutorial provides step by step instructions on how to build a simple Java /JPA database driven web application (for Tomcat / Jetty) in Eclipse or NetBeans ... and install ObjectDB or a Java web server - Maven will download the ObjectDB jar and the Jetty
|
|
Step 2: Define a JPA Entity Class
; import java .io.Serializable; import javax.persistence.*; @Entity public class Point implements ... (and its annotations) - the Point class is an ordinary Java class. The next step is adding to the project
|
|
Step 7: Run the Spring Web App
automatic enhancement (weaving) in Tomcat it has to be run with ObjectDB as a Java agent ... without specifying a Java agent. Since we are using ObjectDB in embedded mode - the database file
|
|
Step 2: Entity Class and Persistence Unit
to replace the new source file content with the following code: package guest; import java .io.Serializable; import java .sql.Date; import javax.persistence.Entity; import javax.persistence.GeneratedValue
|
|
Step 4: Run the Application
You can now run the application by right clicking the Main. java file (in the [ Package Explorer ] window) and selecting Run As Java Application . The expected output in the Eclipse [Console] window, is: Total Points: 1000 Average X: 499.5 (0,0) (1,1) (2,2) (3,3) : : (998,998) (999,999
|
|
Step 4: Add a Controller Class
In this step we will add a Spring Controller to manage guestbook web requests: Open the [New Java Class] dialog box by right clicking the guest package node (in the [Projects] window) and selecting New Java Class ... Enter GuestController as the class name - use exactly that case sensitive class
|
|
Step 2: Entity Class and Persistence Unit
to replace the new source file content with the following code: package guest; import java .io.Serializable; import java .sql.Date; import javax.persistence.Entity; import javax.persistence
|
|
Step 3: Define a Spring DAO Component
Operations on the database will be performed by an instance of a Data Access Object (DAO) that we will define in this step as a Spring MVC component: Open the [New Java Class] dialog box by right ... replace the content of the new source file with the following code: package guest; import java .util
|
|
Spring MVC JPA Tutorial - Maven Project
The Spring MVC JPA tutorial provides step by step instructions on how to build a simple Java /JPA Spring MVC database driven web application in Eclipse or NetBeans . Building a new ... and install ObjectDB or a Java web server - Maven will download the ObjectDB jar and the Jetty
|
|
Step 4: Add a Servlet Class
... Enter GuestServlet as the class name - use exactly that case sensitive class name. The Java ... of the new source file with the following code: package guest; import java .io.IOException; import javax
|
|
Spring MVC and JPA Tutorial
This tutorial demonstrates how to create and run a full Java Spring MVC (Model View Controller) web application using Tomcat (or GlassFish), JPA, ObjectDB and Maven. The demo web application manages a basic guestbook page. Every visitor can sign the guestbook by filling a simple form. All visitors
|
|
Step 4: Add a Controller Class
In this step we will add a Spring Controller to manage guestbook web requests: Open the [New Java Class] dialog box by right clicking the guest package node (in the [Package Explorer] window) and selecting New Class . The package name should be guest . Enter GuestController as
|
|
Step 3: Add a Context Listener Class
Other... Web Listener and clicking Next . The Java package name should be guest. Enter GuestListener as
|
|
Step 1: Create a Maven Web Project
.2 enhance process-classes java com.objectdb.Enhancer guest.Guest org.mortbay.jetty maven-jetty
|
|
ObjectDB 1.0 Manual
Welcome to the ObjectDB for Java /JDO Developer's Guide. Here you can learn how to develop database applications using ObjectDB and JDO ( Java Data Objects), the revolutionary database programming ... and understanding of the Java language is essential. Further Reading and Resources This guide focuses mainly
|